<?php
if (!defined("_INDEX")) { header("Location: /"); die; }

if ($user = $route->getAdminId() && $user->getUserId() == 1){
	$db->sendQuery("delete from `users` where `user_id` = '$user_id' limit 1");
	$db->sendQuery("delete from `agent` where `user_id` = '$user_id' limit 1");
}

goToPage("/admin/users");
?>